-
Notifications
You must be signed in to change notification settings - Fork 15
Fixes #52. Removed tracks filtering while fetching #53
Fixes #52. Removed tracks filtering while fetching #53
Conversation
Update README.md
Update README.md
Release 0.3.5
* fix video retrieval (#43) * add cache version to circle config (allow invalidating) * update maven plugins * update tika from vulnerable version 1.16 to 1.19.1 * update maven plugins * update gson version to 2.8.5, add missing static to listresults inner class (#46) * reformat code * check if property test.track.playlist exists * Release version 0.3.6
Javadoc treats '>' symbol as unwanted, so it was replaced by 'greater than' phrase.
Premium users can add tracks to their libraries without purchasing them, so there's no need to filter tracks by their storeId while fetching.
Thank you for the PR. |
On second thought it seems to be better to create a new method to fetch all the library tracks (unfiltered), in order to keep existing method behaviour, because there are clients expecting this very result (filtered set of tracks). Let me know what you think about that, and I'll change the implementation accordingly. |
@FelixGail Have you by chance checked if this filter was still needed? I'd love to have this functionality as well. I can fork this project and make my own change, but i'd rather stick with master. @nergal-perm Just my two cents, but it might be wise to make that change either a separate method, EDIT: After looking around a bit, it looks like storeid is needed to retrieve a streaming url from google play. gplaymusic/src/main/java/com/github/felixgail/gplaymusic/model/Signable.java Lines 80 to 87 in a89b92f
This method calls getID() in track which checks for storeID or UUID. So perhaps the intent was to only return songs that could be streamed from Google, which could be broken by this change. I think that getting streamable and unstreamable tracks are both valid use cases, so maybe the best option is to introduce a method to the tracksAPI to get streamable and unstreamable songs. Which could mean changing the pagingHandler implementation in LibraryTrackCache to have a little more granularity in deciding how getAll tracksgplaymusic/src/main/java/com/github/felixgail/gplaymusic/cache/LibraryTrackCache.java Lines 17 to 32 in a89b92f
|
thats what i thought at first, too. But all songs should have an identifier, and getID should return the right identifier if there is one. |
I created a snapshot of this version (felixgail:gplaymusic:0.3.7-SNAPSHOT). |
@FelixGail OK, I'll check it out |
Also added the
getThumbsUp()
method toTrackApi
to get only tracks liked by user.